/**
 * Copyright 2014  XCL-Charts
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @Project XCL-Charts
 * @Description Android图表基类库
 * @author XiongChuanLiang<br></br>(xcl_168@aliyun.com)
 * @license http://www.apache.org/licenses/  Apache v2 License
 * @version 1.0
 */
package com.gitee.wsl.common.chart.listener.click

import android.graphics.RectF

/**
 * @ClassName PlotPointPosition
 * @Description  点位置记录信息类
 * @author XiongChuanLiang<br></br>(xcl_168@aliyun.com)
 */
class PlotPointPosition : PointPosition() {
    //当前记录在数据源中行号
    fun savePlotDataID(num: Int) {
        saveDataID(num)
    }

    //当前记录所属数据集的行号
    fun savePlotDataChildID(num: Int) {
        saveDataChildID(num)
    }

    fun savePlotPosition(x: Float, y: Float) {
        position.x = x
        position.y = y
    }

    fun savePlotRectF(
        left: Float, top: Float,
        right: Float, bottom: Float
    ) {
        saveRectF(left, top, right, bottom)
    }

    fun savePlotRectF(r: RectF?) {
        saveRectF(r)
    }

    fun compareF(x: Float, y: Float): Boolean {
        // TODO Auto-generated method stub
        return compareRange(x, y)
    }
}